home *** CD-ROM | disk | FTP | other *** search
- on closeSetup
- global ShowAnimation, SelectedStory, Stories, HDPATH, SetupSprite
- tell the stage
- if the machineType = 256 then
- moveToBack(window (HDPATH & "ATS\" & "SETUP.DIR"))
- else
- moveToBack(window "SETUP.DIR")
- end if
- updateStage()
- if the movieName = "HALLFAME.DIR" then
- if the frame > 5 then
- set the castNum of sprite SetupSprite to the number of cast "setupDark"
- else
- set the castNum of sprite SetupSprite to the number of cast "setup"
- end if
- else
- set the castNum of sprite SetupSprite to the number of cast "setup"
- end if
- puppetSprite(SetupSprite, 0)
- updateStage()
- if the movieName = "MAINSTR.DIR" then
- if ShowAnimation then
- puppetSound(0)
- go("STORY" & SelectedStory)
- else
- go(1)
- end if
- else
- if Stories then
- set the visible of sprite 2 to 1
- end if
- go(the frame)
- end if
- if the machineType = 256 then
- forget(window (HDPATH & "ATS\" & "SETUP.DIR"))
- else
- forget(window "SETUP.DIR")
- end if
- end tell
- end
-